<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>closing_rectangle1 [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_morphology.html">形态学</a> / <a href="toc_morphology_region.html">区域</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">closing_rectangle1</span><span data-if="c" style="display:none;">closing_rectangle1</span><span data-if="cpp" style="display:none;">ClosingRectangle1</span><span data-if="dotnet" style="display:none;">ClosingRectangle1</span><span data-if="python" style="display:none;">closing_rectangle1</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">closing_rectangle1</span><span data-if="c" style="display:none;">closing_rectangle1</span><span data-if="cpp" style="display:none;">ClosingRectangle1</span><span data-if="dotnet" style="display:none;">ClosingRectangle1</span><span data-if="python" style="display:none;">closing_rectangle1</span></code> — Close a region with a rectangular structuring element.</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>closing_rectangle1</b>(<a href="#Region"><i>区域</i></a> : <a href="#RegionClosing"><i>RegionClosing</i></a> : <a href="#Width"><i>Width</i></a>, <a href="#Height"><i>Height</i></a> : )</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>closing_rectangle1</b>(const Hobject <a href="#Region"><i>区域</i></a>, Hobject* <a href="#RegionClosing"><i>RegionClosing</i></a>, const Hlong <a href="#Width"><i>Width</i></a>, const Hlong <a href="#Height"><i>Height</i></a>)</code></p>
<p>
<code>Herror <b>T_closing_rectangle1</b>(const Hobject <a href="#Region"><i>区域</i></a>, Hobject* <a href="#RegionClosing"><i>RegionClosing</i></a>, const Htuple <a href="#Width"><i>Width</i></a>, const Htuple <a href="#Height"><i>Height</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>ClosingRectangle1</b>(const HObject&amp; <a href="#Region"><i>区域</i></a>, HObject* <a href="#RegionClosing"><i>RegionClosing</i></a>, const HTuple&amp; <a href="#Width"><i>Width</i></a>, const HTuple&amp; <a href="#Height"><i>Height</i></a>)</code></p>
<p>
<code><a href="HRegion.html">HRegion</a> <a href="HRegion.html">HRegion</a>::<b>ClosingRectangle1</b>(Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>) const</code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>ClosingRectangle1</b>(<a href="HObject.html">HObject</a> <a href="#Region"><i>区域</i></a>, out <a href="HObject.html">HObject</a> <a href="#RegionClosing"><i>regionClosing</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Width"><i>width</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Height"><i>height</i></a>)</code></p>
<p>
<code><a href="HRegion.html">HRegion</a> <a href="HRegion.html">HRegion</a>.<b>ClosingRectangle1</b>(int <a href="#Width"><i>width</i></a>, int <a href="#Height"><i>height</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>closing_rectangle1</b>(<a href="#Region"><i>区域</i></a>: HObject, <a href="#Width"><i>width</i></a>: int, <a href="#Height"><i>height</i></a>: int) -&gt; HObject</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p><code><span data-if="hdevelop" style="display:inline">closing_rectangle1</span><span data-if="c" style="display:none">closing_rectangle1</span><span data-if="cpp" style="display:none">ClosingRectangle1</span><span data-if="com" style="display:none">ClosingRectangle1</span><span data-if="dotnet" style="display:none">ClosingRectangle1</span><span data-if="python" style="display:none">closing_rectangle1</span></code> behaves as <a href="closing.html"><code><span data-if="hdevelop" style="display:inline">closing</span><span data-if="c" style="display:none">closing</span><span data-if="cpp" style="display:none">Closing</span><span data-if="com" style="display:none">Closing</span><span data-if="dotnet" style="display:none">Closing</span><span data-if="python" style="display:none">closing</span></code></a> with a rectangular
structuring element on the input region <a href="#Region"><i><code><span data-if="hdevelop" style="display:inline">区域</span><span data-if="c" style="display:none">区域</span><span data-if="cpp" style="display:none">区域</span><span data-if="com" style="display:none">区域</span><span data-if="dotnet" style="display:none">区域</span><span data-if="python" style="display:none">区域</span></code></i></a>.
The size of the rectangular structuring element
is determined by the parameters <a href="#Width"><i><code><span data-if="hdevelop" style="display:inline">Width</span><span data-if="c" style="display:none">Width</span><span data-if="cpp" style="display:none">Width</span><span data-if="com" style="display:none">Width</span><span data-if="dotnet" style="display:none">width</span><span data-if="python" style="display:none">width</span></code></i></a> and
<a href="#Height"><i><code><span data-if="hdevelop" style="display:inline">Height</span><span data-if="c" style="display:none">Height</span><span data-if="cpp" style="display:none">Height</span><span data-if="com" style="display:none">Height</span><span data-if="dotnet" style="display:none">height</span><span data-if="python" style="display:none">height</span></code></i></a>.  As is the case for all <a href="closing.html"><code><span data-if="hdevelop" style="display:inline">closing</span><span data-if="c" style="display:none">closing</span><span data-if="cpp" style="display:none">Closing</span><span data-if="com" style="display:none">Closing</span><span data-if="dotnet" style="display:none">Closing</span><span data-if="python" style="display:none">closing</span></code></a>
variants, regions' boundaries are smoothed and holes within a region
which are smaller than the rectangular structuring element are
closed.
</p>
<p>Similar to <a href="erosion_rectangle1.html"><code><span data-if="hdevelop" style="display:inline">erosion_rectangle1</span><span data-if="c" style="display:none">erosion_rectangle1</span><span data-if="cpp" style="display:none">ErosionRectangle1</span><span data-if="com" style="display:none">ErosionRectangle1</span><span data-if="dotnet" style="display:none">ErosionRectangle1</span><span data-if="python" style="display:none">erosion_rectangle1</span></code></a> and <a href="dilation_rectangle1.html"><code><span data-if="hdevelop" style="display:inline">dilation_rectangle1</span><span data-if="c" style="display:none">dilation_rectangle1</span><span data-if="cpp" style="display:none">DilationRectangle1</span><span data-if="com" style="display:none">DilationRectangle1</span><span data-if="dotnet" style="display:none">DilationRectangle1</span><span data-if="python" style="display:none">dilation_rectangle1</span></code></a>
<code><span data-if="hdevelop" style="display:inline">closing_rectangle1</span><span data-if="c" style="display:none">closing_rectangle1</span><span data-if="cpp" style="display:none">ClosingRectangle1</span><span data-if="com" style="display:none">ClosingRectangle1</span><span data-if="dotnet" style="display:none">ClosingRectangle1</span><span data-if="python" style="display:none">closing_rectangle1</span></code> is a very fast operation.</p>
<h2 id="sec_attention">注意</h2>
<p><code><span data-if="hdevelop" style="display:inline">closing_rectangle1</span><span data-if="c" style="display:none">closing_rectangle1</span><span data-if="cpp" style="display:none">ClosingRectangle1</span><span data-if="com" style="display:none">ClosingRectangle1</span><span data-if="dotnet" style="display:none">ClosingRectangle1</span><span data-if="python" style="display:none">closing_rectangle1</span></code> is applied to each input region
separately.  If gaps between different regions are to be closed,
<a href="union1.html"><code><span data-if="hdevelop" style="display:inline">union1</span><span data-if="c" style="display:none">union1</span><span data-if="cpp" style="display:none">Union1</span><span data-if="com" style="display:none">Union1</span><span data-if="dotnet" style="display:none">Union1</span><span data-if="python" style="display:none">union1</span></code></a> or <a href="union2.html"><code><span data-if="hdevelop" style="display:inline">union2</span><span data-if="c" style="display:none">union2</span><span data-if="cpp" style="display:none">Union2</span><span data-if="com" style="display:none">Union2</span><span data-if="dotnet" style="display:none">Union2</span><span data-if="python" style="display:none">union2</span></code></a> has to be called first.</p>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  
    <li>在元组级别自动并行化。</li>
  
</ul>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="Region" class="parname"><b><code><span data-if="hdevelop" style="display:inline">区域</span><span data-if="c" style="display:none">区域</span><span data-if="cpp" style="display:none">区域</span><span data-if="com" style="display:none">区域</span><span data-if="dotnet" style="display:none">区域</span><span data-if="python" style="display:none">区域</span></code></b> (input_object)  </span><span>region(-array) <code>→</code> <span data-if="hdevelop" style="display:inline">object</span><span data-if="dotnet" style="display:none"><a href="HRegion.html">HRegion</a></span><span data-if="python" style="display:none">HObject</span><span data-if="cpp" style="display:none"><a href="HRegion.html">HRegion</a></span><span data-if="c" style="display:none">Hobject</span></span>
</div>
<p class="pardesc">Regions to be closed.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="RegionClosing" class="parname"><b><code><span data-if="hdevelop" style="display:inline">RegionClosing</span><span data-if="c" style="display:none">RegionClosing</span><span data-if="cpp" style="display:none">RegionClosing</span><span data-if="com" style="display:none">RegionClosing</span><span data-if="dotnet" style="display:none">regionClosing</span><span data-if="python" style="display:none">region_closing</span></code></b> (output_object)  </span><span>region(-array) <code>→</code> <span data-if="hdevelop" style="display:inline">object</span><span data-if="dotnet" style="display:none"><a href="HRegion.html">HRegion</a></span><span data-if="python" style="display:none">HObject</span><span data-if="cpp" style="display:none"><a href="HRegion.html">HRegion</a></span><span data-if="c" style="display:none">Hobject *</span></span>
</div>
<p class="pardesc">Closed regions.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Width" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Width</span><span data-if="c" style="display:none">Width</span><span data-if="cpp" style="display:none">Width</span><span data-if="com" style="display:none">Width</span><span data-if="dotnet" style="display:none">width</span><span data-if="python" style="display:none">width</span></code></b> (input_control)  </span><span>extent.x <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Width of the structuring rectangle.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>10</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>1
          ≤
        
    <span data-if="hdevelop" style="display:inline">Width</span>
    <span data-if="c" style="display:none">Width</span>
    <span data-if="cpp" style="display:none">Width</span>
    <span data-if="com" style="display:none">Width</span>
    <span data-if="dotnet" style="display:none">width</span>
    <span data-if="python" style="display:none">width</span>
    
          ≤
          511</code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Height" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Height</span><span data-if="c" style="display:none">Height</span><span data-if="cpp" style="display:none">Height</span><span data-if="com" style="display:none">Height</span><span data-if="dotnet" style="display:none">height</span><span data-if="python" style="display:none">height</span></code></b> (input_control)  </span><span>extent.y <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Height of the structuring rectangle.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>10</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>1
          ≤
        
    <span data-if="hdevelop" style="display:inline">Height</span>
    <span data-if="c" style="display:none">Height</span>
    <span data-if="cpp" style="display:none">Height</span>
    <span data-if="com" style="display:none">Height</span>
    <span data-if="dotnet" style="display:none">height</span>
    <span data-if="python" style="display:none">height</span>
    
          ≤
          511</code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
</div>
<h2 id="sec_complexity">Complexity</h2>
<p>Let F1 be the area of an input region and H be the height of the
rectangle.  Then the runtime complexity for one region is:
<span title="1" class="displaymath"><!-- Created by MetaPost 1.902 on 2023.05.15:2033 --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="10.4979em" height="1.34592em" viewBox="0 0 167.965912 21.534653">
<!-- Original BoundingBox: -83.982956 -10.767319 83.982956 10.767334 -->
  <defs>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmr10_40">
      <path style="fill-rule: evenodd;" d="M331.000000 240.000000C331.000000 237.000000,331.000000 235.000000,314.000000 218.000000C189.000000 92.000000,157.000000 -97.000000,157.000000 -250.000000C157.000000 -424.000000,195.000000 -598.000000,318.000000 -723.000000C331.000000 -735.000000,331.000000 -737.000000,331.000000 -740.000000C331.000000 -747.000000,327.000000 -750.000000,321.000000 -750.000000C311.000000 -750.000000,221.000000 -682.000000,162.000000 -555.000000C111.000000 -445.000000,99.000000 -334.000000,99.000000 -250.000000C99.000000 -172.000000,110.000000 -51.000000,165.000000 62.000000C225.000000 185.000000,311.000000 250.000000,321.000000 250.000000C327.000000 250.000000,331.000000 247.000000,331.000000 240.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmr10_41">
      <path style="fill-rule: evenodd;" d="M289.000000 -250.000000C289.000000 -328.000000,278.000000 -449.000000,223.000000 -562.000000C163.000000 -685.000000,77.000000 -750.000000,67.000000 -750.000000C61.000000 -750.000000,57.000000 -746.000000,57.000000 -740.000000C57.000000 -737.000000,57.000000 -735.000000,76.000000 -717.000000C174.000000 -618.000000,231.000000 -459.000000,231.000000 -250.000000C231.000000 -79.000000,194.000000 97.000000,70.000000 223.000000C57.000000 235.000000,57.000000 237.000000,57.000000 240.000000C57.000000 246.000000,61.000000 250.000000,67.000000 250.000000C77.000000 250.000000,167.000000 182.000000,226.000000 55.000000C277.000000 -55.000000,289.000000 -166.000000,289.000000 -250.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmr10_49">
      <path style="fill-rule: evenodd;" d="M294.000000 -640.000000C294.000000 -664.000000,294.000000 -666.000000,271.000000 -666.000000C209.000000 -602.000000,121.000000 -602.000000,89.000000 -602.000000L89.000000 -571.000000C109.000000 -571.000000,168.000000 -571.000000,220.000000 -597.000000L220.000000 -79.000000C220.000000 -43.000000,217.000000 -31.000000,127.000000 -31.000000L95.000000 -31.000000L95.000000 -0.000000L257.000000 -0.000000L130.000000 -3.000000L217.000000 -3.000000L257.000000 -3.000000L297.000000 -3.000000L384.000000 -3.000000L419.000000 -0.000000L419.000000 -31.000000L387.000000 -31.000000C297.000000 -31.000000,294.000000 -42.000000,294.000000 -79.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmr10_50">
      <path style="fill-rule: evenodd;" d="M127.000000 -77.000000L233.000000 -180.000000C389.000000 -318.000000,449.000000 -372.000000,449.000000 -472.000000C449.000000 -586.000000,359.000000 -666.000000,237.000000 -666.000000C124.000000 -666.000000,50.000000 -574.000000,50.000000 -485.000000C50.000000 -429.000000,100.000000 -429.000000,103.000000 -429.000000C120.000000 -429.000000,155.000000 -441.000000,155.000000 -482.000000C155.000000 -508.000000,137.000000 -534.000000,102.000000 -534.000000C94.000000 -534.000000,92.000000 -534.000000,89.000000 -533.000000C112.000000 -598.000000,166.000000 -635.000000,224.000000 -635.000000C315.000000 -635.000000,358.000000 -554.000000,358.000000 -472.000000C358.000000 -392.000000,308.000000 -313.000000,253.000000 -251.000000L61.000000 -37.000000C50.000000 -26.000000,50.000000 -24.000000,50.000000 -0.000000L421.000000 -0.000000L449.000000 -174.000000L424.000000 -174.000000C419.000000 -144.000000,412.000000 -100.000000,402.000000 -85.000000C395.000000 -77.000000,329.000000 -77.000000,307.000000 -77.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmsy10_1">
      <path style="fill-rule: evenodd;" d="M192.000000 -250.000000C192.000000 -279.000000,168.000000 -303.000000,139.000000 -303.000000C110.000000 -303.000000,86.000000 -279.000000,86.000000 -250.000000C86.000000 -221.000000,110.000000 -197.000000,139.000000 -197.000000C168.000000 -197.000000,192.000000 -221.000000,192.000000 -250.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmsy10_112">
      <path style="fill-rule: evenodd;" d="M389.000000 855.000000L213.000000 466.000000C206.000000 450.000000,201.000000 450.000000,198.000000 450.000000C197.000000 450.000000,192.000000 450.000000,181.000000 458.000000L86.000000 530.000000C73.000000 540.000000,73.000000 543.000000,73.000000 546.000000C73.000000 551.000000,76.000000 557.000000,83.000000 557.000000C89.000000 557.000000,106.000000 543.000000,117.000000 535.000000C123.000000 530.000000,138.000000 519.000000,149.000000 511.000000L346.000000 944.000000C353.000000 960.000000,358.000000 960.000000,367.000000 960.000000C382.000000 960.000000,385.000000 954.000000,392.000000 940.000000L846.000000 -0.000000C853.000000 -14.000000,853.000000 -18.000000,853.000000 -20.000000C853.000000 -30.000000,845.000000 -40.000000,833.000000 -40.000000C825.000000 -40.000000,818.000000 -35.000000,810.000000 -19.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_58">
      <path style="fill-rule: evenodd;" d="M192.000000 -53.000000C192.000000 -82.000000,168.000000 -106.000000,139.000000 -106.000000C110.000000 -106.000000,86.000000 -82.000000,86.000000 -53.000000C86.000000 -24.000000,110.000000 -0.000000,139.000000 -0.000000C168.000000 -0.000000,192.000000 -24.000000,192.000000 -53.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_70">
      <path style="fill-rule: evenodd;" d="M303.000000 -325.000000L400.000000 -325.000000C475.000000 -325.000000,483.000000 -309.000000,483.000000 -280.000000C483.000000 -273.000000,483.000000 -261.000000,476.000000 -231.000000C474.000000 -226.000000,473.000000 -222.000000,473.000000 -220.000000C473.000000 -212.000000,479.000000 -208.000000,485.000000 -208.000000C495.000000 -208.000000,495.000000 -211.000000,500.000000 -229.000000L555.000000 -446.000000C558.000000 -457.000000,558.000000 -459.000000,558.000000 -462.000000C558.000000 -464.000000,556.000000 -473.000000,546.000000 -473.000000C536.000000 -473.000000,535.000000 -468.000000,531.000000 -452.000000C510.000000 -374.000000,487.000000 -356.000000,402.000000 -356.000000L311.000000 -356.000000L375.000000 -610.000000C384.000000 -645.000000,385.000000 -649.000000,429.000000 -649.000000L561.000000 -649.000000C684.000000 -649.000000,707.000000 -616.000000,707.000000 -539.000000C707.000000 -516.000000,707.000000 -512.000000,704.000000 -485.000000C702.000000 -472.000000,702.000000 -470.000000,702.000000 -467.000000C702.000000 -462.000000,705.000000 -455.000000,714.000000 -455.000000C725.000000 -455.000000,726.000000 -461.000000,728.000000 -480.000000L748.000000 -653.000000C751.000000 -680.000000,746.000000 -680.000000,721.000000 -680.000000L231.000000 -680.000000C211.000000 -680.000000,201.000000 -680.000000,201.000000 -660.000000C201.000000 -649.000000,210.000000 -649.000000,229.000000 -649.000000C266.000000 -649.000000,294.000000 -649.000000,294.000000 -631.000000C294.000000 -627.000000,294.000000 -625.000000,289.000000 -607.000000L157.000000 -78.000000C147.000000 -39.000000,145.000000 -31.000000,66.000000 -31.000000C49.000000 -31.000000,38.000000 -31.000000,38.000000 -12.000000C38.000000 -0.000000,50.000000 -0.000000,53.000000 -0.000000L185.000000 -0.000000L82.000000 -0.000000L156.000000 -3.000000L185.000000 -3.000000L218.000000 -3.000000L301.000000 -0.000000L334.000000 -0.000000C343.000000 -0.000000,355.000000 -0.000000,355.000000 -19.000000C355.000000 -27.000000,349.000000 -29.000000,349.000000 -30.000000C346.000000 -31.000000,344.000000 -31.000000,321.000000 -31.000000C299.000000 -31.000000,294.000000 -31.000000,269.000000 -33.000000C240.000000 -36.000000,237.000000 -40.000000,237.000000 -53.000000C237.000000 -55.000000,237.000000 -61.000000,241.000000 -76.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_72">
      <path style="fill-rule: evenodd;" d="M763.000000 -606.000000C772.000000 -642.000000,774.000000 -652.000000,847.000000 -652.000000C873.000000 -652.000000,881.000000 -652.000000,881.000000 -672.000000C881.000000 -683.000000,870.000000 -683.000000,867.000000 -683.000000L739.000000 -683.000000L839.000000 -683.000000L767.000000 -680.000000L739.000000 -680.000000L710.000000 -680.000000L639.000000 -683.000000L610.000000 -683.000000C602.000000 -683.000000,591.000000 -683.000000,591.000000 -663.000000C591.000000 -652.000000,600.000000 -652.000000,619.000000 -652.000000C621.000000 -652.000000,640.000000 -652.000000,657.000000 -650.000000C675.000000 -648.000000,684.000000 -647.000000,684.000000 -634.000000C684.000000 -630.000000,683.000000 -628.000000,680.000000 -615.000000L620.000000 -371.000000L315.000000 -371.000000L374.000000 -606.000000C383.000000 -642.000000,386.000000 -652.000000,458.000000 -652.000000C484.000000 -652.000000,492.000000 -652.000000,492.000000 -672.000000C492.000000 -683.000000,481.000000 -683.000000,478.000000 -683.000000L350.000000 -683.000000L450.000000 -683.000000L378.000000 -680.000000L350.000000 -680.000000L321.000000 -680.000000L250.000000 -683.000000L221.000000 -683.000000C213.000000 -683.000000,202.000000 -683.000000,202.000000 -663.000000C202.000000 -652.000000,211.000000 -652.000000,230.000000 -652.000000C232.000000 -652.000000,251.000000 -652.000000,268.000000 -650.000000C286.000000 -648.000000,295.000000 -647.000000,295.000000 -634.000000C295.000000 -630.000000,294.000000 -627.000000,291.000000 -615.000000L157.000000 -78.000000C147.000000 -39.000000,145.000000 -31.000000,66.000000 -31.000000C48.000000 -31.000000,39.000000 -31.000000,39.000000 -11.000000C39.000000 -0.000000,51.000000 -0.000000,53.000000 -0.000000C81.000000 -0.000000,152.000000 -3.000000,180.000000 -3.000000C201.000000 -3.000000,223.000000 -2.000000,244.000000 -2.000000C266.000000 -2.000000,288.000000 -0.000000,309.000000 -0.000000C317.000000 -0.000000,329.000000 -0.000000,329.000000 -20.000000C329.000000 -31.000000,320.000000 -31.000000,301.000000 -31.000000C264.000000 -31.000000,236.000000 -31.000000,236.000000 -49.000000C236.000000 -55.000000,238.000000 -60.000000,239.000000 -66.000000L307.000000 -340.000000L612.000000 -340.000000C570.000000 -174.000000,547.000000 -79.000000,543.000000 -64.000000C533.000000 -32.000000,514.000000 -31.000000,452.000000 -31.000000C437.000000 -31.000000,428.000000 -31.000000,428.000000 -11.000000C428.000000 -0.000000,440.000000 -0.000000,442.000000 -0.000000C470.000000 -0.000000,541.000000 -3.000000,569.000000 -3.000000C590.000000 -3.000000,612.000000 -2.000000,633.000000 -2.000000C655.000000 -2.000000,677.000000 -0.000000,698.000000 -0.000000C706.000000 -0.000000,718.000000 -0.000000,718.000000 -20.000000C718.000000 -31.000000,709.000000 -31.000000,690.000000 -31.000000C653.000000 -31.000000,625.000000 -31.000000,625.000000 -49.000000C625.000000 -55.000000,627.000000 -60.000000,628.000000 -66.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_79">
      <path style="fill-rule: evenodd;" d="M740.000000 -436.000000C740.000000 -597.000000,634.000000 -705.000000,485.000000 -705.000000C269.000000 -705.000000,49.000000 -478.000000,49.000000 -245.000000C49.000000 -79.000000,161.000000 22.000000,305.000000 22.000000C517.000000 22.000000,740.000000 -197.000000,740.000000 -436.000000M311.000000 -4.000000C212.000000 -4.000000,142.000000 -85.000000,142.000000 -217.000000C142.000000 -261.000000,156.000000 -407.000000,233.000000 -524.000000C302.000000 -628.000000,400.000000 -680.000000,479.000000 -680.000000C561.000000 -680.000000,651.000000 -624.000000,651.000000 -475.000000C651.000000 -403.000000,624.000000 -247.000000,525.000000 -124.000000C477.000000 -63.000000,395.000000 -4.000000,311.000000 -4.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_103">
      <path style="fill-rule: evenodd;" d="M471.000000 -377.000000C472.000000 -383.000000,474.000000 -388.000000,474.000000 -395.000000C474.000000 -412.000000,462.000000 -422.000000,445.000000 -422.000000C435.000000 -422.000000,408.000000 -415.000000,404.000000 -379.000000C386.000000 -416.000000,351.000000 -442.000000,311.000000 -442.000000C197.000000 -442.000000,73.000000 -302.000000,73.000000 -158.000000C73.000000 -59.000000,134.000000 -0.000000,206.000000 -0.000000C265.000000 -0.000000,312.000000 -47.000000,322.000000 -58.000000L323.000000 -57.000000C302.000000 32.000000,290.000000 73.000000,290.000000 75.000000C286.000000 84.000000,252.000000 183.000000,146.000000 183.000000C127.000000 183.000000,94.000000 182.000000,66.000000 173.000000C96.000000 164.000000,107.000000 138.000000,107.000000 121.000000C107.000000 105.000000,96.000000 86.000000,69.000000 86.000000C47.000000 86.000000,15.000000 104.000000,15.000000 144.000000C15.000000 185.000000,52.000000 205.000000,148.000000 205.000000C273.000000 205.000000,345.000000 127.000000,360.000000 67.000000M341.000000 -128.000000C335.000000 -102.000000,312.000000 -77.000000,290.000000 -58.000000C269.000000 -40.000000,238.000000 -22.000000,209.000000 -22.000000C159.000000 -22.000000,144.000000 -74.000000,144.000000 -114.000000C144.000000 -162.000000,173.000000 -280.000000,200.000000 -331.000000C227.000000 -380.000000,270.000000 -420.000000,312.000000 -420.000000C378.000000 -420.000000,392.000000 -339.000000,392.000000 -334.000000C392.000000 -329.000000,390.000000 -323.000000,389.000000 -319.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_108">
      <path style="fill-rule: evenodd;" d="M258.000000 -683.000000C258.000000 -684.000000,258.000000 -694.000000,245.000000 -694.000000C222.000000 -694.000000,149.000000 -686.000000,123.000000 -684.000000C115.000000 -683.000000,104.000000 -682.000000,104.000000 -663.000000C104.000000 -652.000000,114.000000 -652.000000,129.000000 -652.000000C177.000000 -652.000000,178.000000 -643.000000,178.000000 -635.000000L175.000000 -615.000000L49.000000 -115.000000C46.000000 -104.000000,44.000000 -97.000000,44.000000 -81.000000C44.000000 -24.000000,88.000000 11.000000,135.000000 11.000000C168.000000 11.000000,193.000000 -9.000000,210.000000 -45.000000C228.000000 -83.000000,240.000000 -141.000000,240.000000 -143.000000C240.000000 -153.000000,231.000000 -153.000000,228.000000 -153.000000C218.000000 -153.000000,217.000000 -149.000000,214.000000 -135.000000C197.000000 -70.000000,178.000000 -11.000000,138.000000 -11.000000C108.000000 -11.000000,108.000000 -43.000000,108.000000 -57.000000C108.000000 -81.000000,109.000000 -86.000000,114.000000 -105.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHcmmi10_111">
      <path style="fill-rule: evenodd;" d="M469.000000 -273.000000C469.000000 -377.000000,399.000000 -442.000000,309.000000 -442.000000C175.000000 -442.000000,41.000000 -300.000000,41.000000 -158.000000C41.000000 -59.000000,108.000000 11.000000,201.000000 11.000000C334.000000 11.000000,469.000000 -127.000000,469.000000 -273.000000M202.000000 -11.000000C159.000000 -11.000000,115.000000 -42.000000,115.000000 -120.000000C115.000000 -169.000000,141.000000 -277.000000,173.000000 -328.000000C223.000000 -405.000000,280.000000 -420.000000,308.000000 -420.000000C366.000000 -420.000000,396.000000 -372.000000,396.000000 -312.000000C396.000000 -273.000000,376.000000 -168.000000,338.000000 -103.000000C303.000000 -45.000000,248.000000 -11.000000,202.000000 -11.000000"></path>
    </g>
    <g transform="scale(0.009963,0.009963)" id="GLYPHptmr8r_95">
      <path style="fill-rule: evenodd;" d="M500.000000 125.000000L500.000000 75.000000L0.000000 75.000000L0.000000 125.000000"></path>
    </g>
  </defs>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,0.017044 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_79"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,12.618698 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmr10_40"></use>
    <use xlink:href="#GLYPHcmr10_50" x="3.888963"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,30.330124 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmsy10_1"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,38.300217 1.507874)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmsy10_112"></use>
  </g>
  <path d="M51.583786 1.189148L72.018448 1.189148" style="stroke:rgb(0.000000%,0.000000%,0.000000%); stroke-width: 0.637604;stroke-linejoin: round;stroke-miterlimit: 10.000000;fill: none;"></path>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,51.583786 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_70"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,64.048172 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmr10_49"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,75.560516 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmsy10_1"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,83.530640 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_108"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,88.600586 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_111"></use>
    <use xlink:href="#GLYPHcmmi10_103" x="4.847300"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,104.502090 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHptmr8r_95"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,112.472183 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmr10_50"></use>
    <use xlink:href="#GLYPHcmr10_40" x="5.000095"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,126.641357 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_72"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,141.186874 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmr10_41"></use>
    <use xlink:href="#GLYPHcmr10_41" x="3.888963"></use>
  </g>
  <g transform="matrix(1.600006,-0.000000,-0.000000,1.600006,161.555115 15.782166)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
    <use xlink:href="#GLYPHcmmi10_58"></use>
  </g>
</svg></span></p>
<h2 id="sec_result">结果</h2>
<p><code><span data-if="hdevelop" style="display:inline">closing_rectangle1</span><span data-if="c" style="display:none">closing_rectangle1</span><span data-if="cpp" style="display:none">ClosingRectangle1</span><span data-if="com" style="display:none">ClosingRectangle1</span><span data-if="dotnet" style="display:none">ClosingRectangle1</span><span data-if="python" style="display:none">closing_rectangle1</span></code> returns <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
     if all parameters are
correct.  The behavior in case of empty or no input region can be
set via:
</p>
<ul>
<li>
<p> no region:
<a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system('no_object_result',&lt;RegionResult&gt;)</span><span data-if="c" style="display:none">set_system("no_object_result",&lt;RegionResult&gt;)</span><span data-if="cpp" style="display:none">SetSystem("no_object_result",&lt;RegionResult&gt;)</span><span data-if="com" style="display:none">SetSystem("no_object_result",&lt;RegionResult&gt;)</span><span data-if="dotnet" style="display:none">SetSystem("no_object_result",&lt;RegionResult&gt;)</span><span data-if="python" style="display:none">set_system("no_object_result",&lt;RegionResult&gt;)</span></code></a>
</p>
</li>
<li>
<p> empty region:
<a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system('empty_region_result',&lt;RegionResult&gt;)</span><span data-if="c" style="display:none">set_system("empty_region_result",&lt;RegionResult&gt;)</span><span data-if="cpp" style="display:none">SetSystem("empty_region_result",&lt;RegionResult&gt;)</span><span data-if="com" style="display:none">SetSystem("empty_region_result",&lt;RegionResult&gt;)</span><span data-if="dotnet" style="display:none">SetSystem("empty_region_result",&lt;RegionResult&gt;)</span><span data-if="python" style="display:none">set_system("empty_region_result",&lt;RegionResult&gt;)</span></code></a>
</p>
</li>
</ul>

<p>Otherwise, an exception is raised.</p>
<h2 id="sec_predecessors">可能的前置算子</h2>
<p>
<code><a href="threshold.html"><span data-if="hdevelop" style="display:inline">threshold</span><span data-if="c" style="display:none">threshold</span><span data-if="cpp" style="display:none">Threshold</span><span data-if="com" style="display:none">Threshold</span><span data-if="dotnet" style="display:none">Threshold</span><span data-if="python" style="display:none">threshold</span></a></code>, 
<code><a href="regiongrowing.html"><span data-if="hdevelop" style="display:inline">regiongrowing</span><span data-if="c" style="display:none">regiongrowing</span><span data-if="cpp" style="display:none">Regiongrowing</span><span data-if="com" style="display:none">Regiongrowing</span><span data-if="dotnet" style="display:none">Regiongrowing</span><span data-if="python" style="display:none">regiongrowing</span></a></code>, 
<code><a href="connection.html"><span data-if="hdevelop" style="display:inline">connection</span><span data-if="c" style="display:none">connection</span><span data-if="cpp" style="display:none">Connection</span><span data-if="com" style="display:none">Connection</span><span data-if="dotnet" style="display:none">Connection</span><span data-if="python" style="display:none">connection</span></a></code>, 
<code><a href="union1.html"><span data-if="hdevelop" style="display:inline">union1</span><span data-if="c" style="display:none">union1</span><span data-if="cpp" style="display:none">Union1</span><span data-if="com" style="display:none">Union1</span><span data-if="dotnet" style="display:none">Union1</span><span data-if="python" style="display:none">union1</span></a></code>, 
<code><a href="watersheds.html"><span data-if="hdevelop" style="display:inline">watersheds</span><span data-if="c" style="display:none">watersheds</span><span data-if="cpp" style="display:none">Watersheds</span><span data-if="com" style="display:none">Watersheds</span><span data-if="dotnet" style="display:none">Watersheds</span><span data-if="python" style="display:none">watersheds</span></a></code>, 
<code><a href="class_ndim_norm.html"><span data-if="hdevelop" style="display:inline">class_ndim_norm</span><span data-if="c" style="display:none">class_ndim_norm</span><span data-if="cpp" style="display:none">ClassNdimNorm</span><span data-if="com" style="display:none">ClassNdimNorm</span><span data-if="dotnet" style="display:none">ClassNdimNorm</span><span data-if="python" style="display:none">class_ndim_norm</span></a></code>
</p>
<h2 id="sec_successors">可能的后置算子</h2>
<p>
<code><a href="reduce_domain.html"><span data-if="hdevelop" style="display:inline">reduce_domain</span><span data-if="c" style="display:none">reduce_domain</span><span data-if="cpp" style="display:none">ReduceDomain</span><span data-if="com" style="display:none">ReduceDomain</span><span data-if="dotnet" style="display:none">ReduceDomain</span><span data-if="python" style="display:none">reduce_domain</span></a></code>, 
<code><a href="select_shape.html"><span data-if="hdevelop" style="display:inline">select_shape</span><span data-if="c" style="display:none">select_shape</span><span data-if="cpp" style="display:none">SelectShape</span><span data-if="com" style="display:none">SelectShape</span><span data-if="dotnet" style="display:none">SelectShape</span><span data-if="python" style="display:none">select_shape</span></a></code>, 
<code><a href="area_center.html"><span data-if="hdevelop" style="display:inline">area_center</span><span data-if="c" style="display:none">area_center</span><span data-if="cpp" style="display:none">AreaCenter</span><span data-if="com" style="display:none">AreaCenter</span><span data-if="dotnet" style="display:none">AreaCenter</span><span data-if="python" style="display:none">area_center</span></a></code>, 
<code><a href="connection.html"><span data-if="hdevelop" style="display:inline">connection</span><span data-if="c" style="display:none">connection</span><span data-if="cpp" style="display:none">Connection</span><span data-if="com" style="display:none">Connection</span><span data-if="dotnet" style="display:none">Connection</span><span data-if="python" style="display:none">connection</span></a></code>
</p>
<h2 id="sec_alternatives">可替代算子</h2>
<p>
<code><a href="closing.html"><span data-if="hdevelop" style="display:inline">closing</span><span data-if="c" style="display:none">closing</span><span data-if="cpp" style="display:none">Closing</span><span data-if="com" style="display:none">Closing</span><span data-if="dotnet" style="display:none">Closing</span><span data-if="python" style="display:none">closing</span></a></code>
</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="dilation_rectangle1.html"><span data-if="hdevelop" style="display:inline">dilation_rectangle1</span><span data-if="c" style="display:none">dilation_rectangle1</span><span data-if="cpp" style="display:none">DilationRectangle1</span><span data-if="com" style="display:none">DilationRectangle1</span><span data-if="dotnet" style="display:none">DilationRectangle1</span><span data-if="python" style="display:none">dilation_rectangle1</span></a></code>, 
<code><a href="erosion_rectangle1.html"><span data-if="hdevelop" style="display:inline">erosion_rectangle1</span><span data-if="c" style="display:none">erosion_rectangle1</span><span data-if="cpp" style="display:none">ErosionRectangle1</span><span data-if="com" style="display:none">ErosionRectangle1</span><span data-if="dotnet" style="display:none">ErosionRectangle1</span><span data-if="python" style="display:none">erosion_rectangle1</span></a></code>, 
<code><a href="opening_rectangle1.html"><span data-if="hdevelop" style="display:inline">opening_rectangle1</span><span data-if="c" style="display:none">opening_rectangle1</span><span data-if="cpp" style="display:none">OpeningRectangle1</span><span data-if="com" style="display:none">OpeningRectangle1</span><span data-if="dotnet" style="display:none">OpeningRectangle1</span><span data-if="python" style="display:none">opening_rectangle1</span></a></code>, 
<code><a href="gen_rectangle1.html"><span data-if="hdevelop" style="display:inline">gen_rectangle1</span><span data-if="c" style="display:none">gen_rectangle1</span><span data-if="cpp" style="display:none">GenRectangle1</span><span data-if="com" style="display:none">GenRectangle1</span><span data-if="dotnet" style="display:none">GenRectangle1</span><span data-if="python" style="display:none">gen_rectangle1</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
